package com.situ.spring.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.situ.spring.service.ICourseService;

//<bean name="studentController" class="com.situ.spring.controller.StudentController">
//	<property name="studentService" ref="studentService"></property>
//</bean>
@Controller("courseController")
public class CourseController {
	
	// <property name="studentService" ref="studentService"></property>
	@Resource(name = "courseService")
	private ICourseService courseService;
	
	public void selectAll() {
		System.out.println("CourseController.selectAll()");
		courseService.selectAll();
	}
}
